package com.rashith.metro.alfa.sam;

import java.lang.reflect.Type;
import java.util.List;

import android.os.AsyncTask;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;



public class ShowList {
	
	//String sam_;
	
	//TextView httpStuff;
	
	
	
	
	 String sam = "[{\"ItemCategory\":\"Bread Items\",\"Item\":\"Cheese Boat\",\"Description\":\"Cheese Boat is perfect for breakfast!\",\"price\":Rs.200,\"imageurl\":\"http://a4.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s720x720/532851_383964621647904_776822462_n.jpg\"},{\"ItemCategory\":\"Bread Items\",\"Item\":\"Applewerm\",\"Description\":\"Applewerm is a yummy vegetarian item from our soft bun selection.\",\"price\":Rs.120,\"imageurl\":\"http://a8.sphotos.ak.fbcdn.net/hphotos-ak-prn1/s720x720/528870_382888971755469_1159363464_n.jpg\"},{\"ItemCategory\":\"Bread Items\",\"Item\":\"Chocolate Donut\",\"Description\":\"Chocolate Donut is absolutely yummy!\",\"price\":Rs.275,\"imageurl\":\"http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/155458_384751614902538_716356910_n.jpg\"},{\"ItemCategory\":\"Bread Items\",\"Item\":\"Porky Pocket\",\"Description\":\"Porky Pocket for lunch anyone?\",\"price\":Rs.125,\"imageurl\":\"http://a8.sphotos.ak.fbcdn.net/hphotos-ak-prn1/s720x720/546311_399611813416518_347442531966780_1245182_1569598906_n.jpg\"},{\"ItemCategory\":\"Bread Items\",\"Item\":\"Strawberry donut\",\"Description\":\"Donut Lovers! Have you tried our Strawberry donut?\",\"price\":Rs.315,\"imageurl\":\"http://a5.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s720x720/521554_400914816619551_347442531966780_1249719_1089552750_n.jpg\"},{\"ItemCategory\":\"Cakes\",\"Item\":\"Lemon Cheese\",\"Description\":\"The classic Lemon Cheese Cake gets a contemporary twist, zesty, creamy and sweet.\",\"price\":Rs.290,\"imageurl\":\"http://a3.sphotos.ak.fbcdn.net/hphotos-ak-prn1/534684_377831798927853_1657584506_n.jpg\"},{\"ItemCategory\":\"Cakes\",\"Item\":\"Macha Macha\",\"Description\":\" Perfect gift to take when you are visiting loved ones during this Avurudu season\",\"price\":Rs.2500,\"imageurl\":\"http://a3.sphotos.ak.fbcdn.net/hphotos-ak-prn1/524453_376586152385751_1101250669_n.jpg\"},{\"ItemCategory\":\"Cakes\",\"Item\":\"Swiss Roll\",\"Description\":\"How about having an absolutely delicious Chocolate Swiss Roll?\",\"price\":Rs.800,\"imageurl\":\"http://a1.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s720x720/580788_384615198249513_347442531966780_1203371_1096684015_n.jpg\"},{\"ItemCategory\":\"Cakes\",\"Item\":\"Tiramsu\",\"Description\":\"Check out Tiramisu from our Cakes Selection!\",\"price\":Rs.3400,\"imageurl\":\"http://a5.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s720x720/154771_384827148228318_1371409238_n.jpg\"},{\"ItemCategory\":\"Cakes\",\"Item\":\"BlackForest\",\"Description\":\"Introducing you to BlackForest from our Cakes Selection!\",\"price\":Rs.3000,\"imageurl\":\"http://a4.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s720x720/559044_368419026535797_913842145_n.jpg\"}]";
     
    // httpStuff = (TextView) findViewById(R.id.editText1);
	
	
	List<SamList> places ;
	
	public List<SamList>getPlaces(String ID){
		
		Gson g = new Gson();
		Type my = new TypeToken<List<SamList>>(){}.getType(); 
		
		places =  g.fromJson(sam, my);
		
		return places;
	}
	
	
	

}
